package com.oop.Demo01;

//引用传递：对象  本质还是值传递
public class Demo02 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.name); //null

        Demo02.change(person);
        System.out.println(person.name);
    }

    public static void change(Person person) {
        person.name = "xiaohong";
    }
}

class Person {
    String name;
}

